import random

 
l1 = [''.join(random.choices(str('abcdefghijklmnopqrstuvwxyz'),k=2)) for _ in range(100)]
d = {}

for i in l1:
    if not d.get(i):
        d[i] = 1
    else:
        d[i] += 1


print(sorted(d.items(),key=lambda items:items[1],reverse=True)


# 完成的不错
